package DesignPatern.A12_策略模式.QSB.A01_基本模式;

/**
 * @Author: Du
 * @Date: 2021/7/31 11:44
 *
 */
public class A01_Main
{
    public static void main(String[] args)
    {
        Context context;
    
        System.out.println("--拆封第一个--");
        context = new Context(new BackDoor());
        context.operate();
        System.out.println("--拆封第二个--");
        context = new Context(new GivenGreenLight());
        context.operate();
        System.out.println("--拆封第三个--");
        context = new Context(new BlockEnemy());
        context.operate();
    }
}
